/**
 * Created by Administrator on 2017/7/20.
 */
$(function(){
    <!--�ļ����·�ҳ-->
    var swiper = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        nextButton: '.swiper-button-next',
        prevButton: '.swiper-button-prev',
        slidesPerView: 1,
        simulateTouch:false,/*默认为true，Swiper接受鼠标点击、拖动。*/
        /*paginationClickable: true,*/
        spaceBetween: 30,
        //loop: true
    });

    //�ļ������л�
   $(".swiper-button-next").on("click",function(){
       var index=$(".swiper-slide-active").attr("data-index");
       $("#swipePage").text(index);
   })
    $(".swiper-button-prev").on("click",function(){
        var index=$(".swiper-slide-active").attr("data-index");
        $("#swipePage").text(index);
    })
})